//****************intSLList.cpp***************************** */
#include <iostream>
#include "intSLLIst.h"

IntSLList::~IntSLList(){
    for(IntSLLNode *p; !isEmpty();){
        p = head->next;
        delete head;
        head = p;
    }
}

void IntSLList::addToHead(int el){
    head = new IntSLLNode(el,head);
        if(tail == 0)
            tail = head;
}

